home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000203_andy@tipas.lt_Wed Dec 5 09:27:28 EST 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
53 lines
Article: 13025 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
From: andy@tipas.lt (Andrey Bondar)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: UUCP lockfile name for SVR4
Date: 5 Dec 2001 00:39:14 -0800
Organization: http://groups.google.com/
Lines: 34
Message-ID: <e843e207.0112050039.104d1565@posting.google.com>
References: <9ujr5a$17p$1@newsmaster.cc.columbia.edu>
NNTP-Posting-Host: 193.219.195.226
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1007541554 31739 127.0.0.1 (5 Dec 2001 08:39:14 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Dec 2001 08:39:14 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13025
fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote in message news:<9ujr5a$17p$1@newsmaster.cc.columbia.edu>...
> System V R4 creates UUCP lockfile names that are based on the device
> number rather than the device name, to sidestep issues about multiple
> names for the same device, symlinks, etc. The code in Kermit is:
>
> stat(ttdev,&devbuf);
> ...
> sprintf(lockfil,"LK.%03d.%03d.%03d", /* safe */
> major(devbuf.st_dev), /* inode */
> major(devbuf.st_rdev), /* major device number */
> minor(devbuf.st_rdev)); /* minor device number */
>
> Unfortunately I don't recall where this code came from, but it dates
> from before C-Kermit 5A was released. As you can see, one of the lines
> has a comment that does not agree with the code:
>
> major(devbuf.st_dev), /* inode */
>
> Is the code wrong, or the comment? I suspect it's the comment but
> unfortunately, I can't seem to locate a definitive reference for the SVR4
> lockfile name format (for example, it is not discussed in SVID), nor sample
> "official" SVR4 code (e.g. from cu or uucp). Can anybody supply these?
> And/or verify that Kermit properly interlocks with cu on (say) Solaris or
> SINIX?
>
> Thanks!
>
> - Frank
Look at Gert Doering's mgetty source. It contains SVR4-style locking code.
http://alpha.greenie.net/mgetty
Andrey Bondar, SysAdmin,
T.I.P.A.S. Ltd., Lithuania